package
{
	import com.bit101.components.Slider;
	import com.feng.components.FSlider;
	
	import flash.display.Sprite;
	import flash.events.Event;
	
	import fla.ui.SliderTest;

	public class TestSlider extends Sprite
	{
		public function TestSlider()
		{
			var sliderTest:SliderTest = new SliderTest();

			addChild(sliderTest);

			new Slider(Slider.HORIZONTAL, this);


			FSlider.make(sliderTest.tHSlider, FSlider.HORIZONTAL).backClick = true;

			FSlider.getSlider(sliderTest.tHSlider).addEventListener(Event.CHANGE, function(event:Event):void
			{
				trace(FSlider.getSlider(sliderTest.tHSlider).value)
			});


			FSlider.make(sliderTest.tVSlider,FSlider.VERTICAL).backClick = true;
			
			FSlider.getSlider(sliderTest.tVSlider).addEventListener(Event.CHANGE, function(event:Event):void
			{
				trace(FSlider.getSlider(sliderTest.tVSlider).value)
			});
			

		}
	}
}
